<?php
include_once ($_SERVER['DOCUMENT_ROOT'].'/global.php');
$array = array();
$sql="Select b.id,b.BuMenName from Worker a,BuMenTree b where a.BuMenId = b.id and a.person_id = {$_GET['CurPersonId']} and a.IsDelete = 0";
$query = $mysqli->query($sql);
while ($a = $query->fetch_assoc()) {
  $array[] = $a;
}
echo json_encode($array);
exit;
?>
